﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace $rootnamespace$
{
    public partial class Boolean : Catalyst.Web.DynamicData.EqualsFilterUserControlBase
    {
        public override string Value
        {
            get
            {
                return CheckBox1.Checked.ToString();
            }
            set
            {
                bool val;
                if (bool.TryParse(value, out val))
                {
                    CheckBox1.Checked = val;
                }
            }
        }

        public override TypeCode ValueType
        {
            get { return TypeCode.Boolean; }
        }
    }
}